package top.hzy520.common.resp;

import lombok.Data;
import top.hzy520.common.constants.Constants;

/**
 * @Author: HouZeYu
 * @Description:
 * @Date: Created in 21:54 2018/5/13
 */
@Data
public class ApiResult<T> {
    private  int code= Constants.RESP_STATUS_INTERNAL_ERROR;

    private String message;
    private T data;

    public ApiResult() {
    }
    public ApiResult(int code, String message) {
        this.code = code;
        this.message = message;
    }
}
